﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StepDefinitions
{
    using CodedUISample.StepDefinitions;

    using TechTalk.SpecFlow;

    [Binding]
    public class AddSteps : SpecFlowBaseSteps
    {

        [Given(@"I have entered (.*) into the calculator")]
        public void GivenIHaveEnteredIntoTheCalculator(int number)
        {
            this.Example.Calc.EnteredIntoTheCalculator(number);
        }

        [Given(@"I have clicked (.*) on the calculator")]
        public void GivenIHaveClickedOnTheCalculator(int number)
        {
            this.Example.Calc.ClickNumberOnTheCalculator(number);
        }


        [Given(@"I press add")]
        public void GivenIPressAdd()
        {
            this.Example.Calc.PressAdd();
        }

        [When(@"I press enter")]
        public void WhenIPressEnter()
        {
            this.Example.Calc.PressEnter();
        }

        [Then(@"the result should be (.*) on the screen")]
        public void ThenTheResultShouldBeOnTheScreen(int number)
        {
            this.Example.Calc.AssertResult(number);
        }

        [Given(@"I Click add")]
        public void GivenIClickAdd()
        {
            this.Example.Calc.ClickAdd();
        }

        [When(@"I Click Equals")]
        public void WhenIClickEquals()
        {
            this.Example.Calc.ClickEqual();
        }


    }
}
